package com.client.controller;

import com.client.view.FriendListFrame;

import java.util.HashMap;

/**
 * @author lxl
 * @date 2020/12/26 - 16:06
 */
/*
管理好友列表在线情况
 */
public class FriendListFrameManager {
    private static HashMap map = new HashMap<String, FriendListFrame>();
    public static void addQqFriendList(String qqid, FriendListFrame friendListFrame){
        map.put(qqid, friendListFrame);
    }

    public static FriendListFrame getQqFriendList(String qqid){
        return (FriendListFrame) map.get(qqid);
    }

    public static void remove(String qqid){
        map.remove(qqid);
    }

    public static HashMap<String,FriendListFrame> getMap(){
        return map;
    }
}
